/**
 * Created by jacky on 2017/4/24.
 * banker developer jacky</br>
 */

import React, {Component} from 'react';
import {Navigator} from 'react-native';
import registerFirst from './RegisterFirst';

const defaultRoute = {
    component: registerFirst
};

export default class HelloNavigator2 extends Component {
    render() {
        return (
            <Navigator initialRoute={defaultRoute}
                       configureScene={(route, routeStack) => Navigator.SceneConfigs.HorizontalSwipeJump}
                       renderScene={(route, navigator) => {
                           let Component = route.component;
                           return (<Component {...route.params} navigator={navigator}/>);
                       }}/>
        );
    }
}
